<script type="text/javascript" >
    stFlickrToolbox.load_tooltip();
    stFlickrToolbox.on_submitform('#PhotoForm', function(data){
        stFlickrToolbox.loadPage('flickrPhotostream', '', '<?php _e("Successful", $config['plugin_name']) ?>');
    });
</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
        <form class="stform" id="PhotoForm" action="<?php echo admin_url('/admin.php?page=' . $config['plugin_name'] . '&action=' . $current_action) ?>" method="post" >

            <ul>
                <li>
                    <label><?php _e('Title', $config['plugin_name']); ?>:</label>
                    <div>
                        <input  value="<?php echo $result->title ?>" class="required" name="data[title]" id="title" type="text"/>
                    </div>
                    <br clear="both" />
                </li>

                <li>
                    <label><?php _e('Description', $config['plugin_name']); ?>:</label>
                    <div>
                        <textarea  id="description" name="data[description]" cols="5" rows="5"><?php echo $result->description ?></textarea>

                    </div>
                    <br clear="both" />
                </li>
                <li>
                    <label><?php _e('Tags', $config['plugin_name']); ?>:</label>
                    <div>
                        <textarea  id="tag" name="data[tag]" cols="5" rows="5"><?php echo $result->tag; ?></textarea>
                    </div>
                    <br clear="both" />
                </li>
                <li><input type="submit" value="Submit"/></li>
            </ul>
            <input type="hidden" value="<?php echo $result->id ?>" id="id" name="data[id]"/>
            <input type="hidden" value="<?php echo $result->photo_id ?>" id="id" name="data[photo_id]"/>
        </form>
    </div>
</div>

